import * as path from 'path';

function formatPath(p) {
  if (p) {
    const sep = path.sep;
    if (sep === '/') {
      return p;
    }
    return p.replace(/\\/g, '/');
  }
  return p;
}

export default formatPath;

if (module) {
  module.exports = formatPath;
}

